<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="qry_user_list" method="get">
        <div>
            查询<select name="field_name">
                    <option th:value="user_code">代码</option>
                    <option th:value="user_name">姓名</option>
                    <option th:value="telephone">电话</option>
                </select>
            <input type="text" maxlength="11" name="qry_content" />
            <input type="submit" th:value="搜索"/>
        </div>
    </form>
    <table>
        <tr>
            <td>代码</td>
            <td>姓名</td>
            <td>移动电话</td>
            <td>专业</td>
            <td>操作</td>
        </tr>
        <tr th:each="u, State: ${user_list}">
            <td th:text="${u.user_code}"></td>
            <td th:text="${u.user_name}"></td>
            <td th:text="${u.telephone}"></td>
            <td th:text="${u.pro_name}"></td>
            <td><a th:href="@{show_edit_user(user_code=${u.user_code})}">修改</a>
                <a th:href="@{delete_user(user_code=${u.user_code})}">删除</a> </td>
        </tr>
    </table>
    <div>
        <a th:href="@{add_user}">添加用户</a>
    </div>
</body>
</html>